import request from '@/utils/request'

// 查询商务人员列表
export function getStationUserList(query) {
  return request({
    url: '/system/delivery/getStationUserList',
    method: 'get',
    params: query
  })
}

// 通过商务人员的id查询岗位列表
export function getStationByUserId(userId) {
  return request({
    url: '/system/delivery/getStationByUserId/' + userId,
    method: 'get',
  })
}


export function getResumeUserList(query) {
  return request({
    url: '/system/delivery/getResumeUserList',
    method: 'get',
    params: query
  })
}


export function addResumeUsers(stationUserId, data) {
  return request({
    url: '/system/delivery/addResumeUsers/' + stationUserId,
    method: 'post',
    data: data
  })
}

export function getNamesByStationUserId(stationUserId) {
  return request({
    url: '/system/delivery/getNamesByStationUserId/' + stationUserId,
    method: 'get'
  })
}


export function listStation(query) {
  return request({
    url: '/system/delivery/listStation',
    method: 'get',
    params: query
  })
}

export function checkAbutting(userId) {
  return request({
    url: '/system/delivery/checkAbutting/' + userId,
    method: 'get'
  })
}

export function deleteCheckResume(id) {
  return request({
    url: '/system/delivery/deleteCheckResume/' + id,
    method: 'delete'
  })
}


export function getResumeList(query) {
  return request({
    url: '/system/delivery/getResumeList',
    method: 'get',
    params: query
  })
}


export function checkStation(userId) {
  return request({
    url: '/system/delivery/checkStation/' + userId,
    method: 'get'
  })
}



export function principalUser(userId) {
  return request({
    url: '/system/delivery/principalUser/' + userId,
    method: 'get'
  })
}
